#!/usr/bin/env node
const cp = require('child_process');

console.log('I am child process. PID:', process.pid);

process.on('message', (msg) => {
    console.log(`'child',${msg}`);

});

process.send('hello! I am child process. PID: ' + process.pid);
